%h1.user=@user.login
%p.user_info
  Signed up on
  =@user.created_at.strftime("%B %o, %Y")
  - if logged_in? and current_user.is_admin?
    %h2.email=@user.email
- unless @user.comments.empty?
  %h3.user_comments
    = @user.login + " has made the following comments:"
  %ol.comment_list
    - @user.comments.each do |comment|
      %li.comment
        - if logged_in? && current_user.is_admin?
          %div.delete_comment
            - form_for comment, comments_url, :html => {:method => :delete} do |form|
              = submit_tag "x"
        - if comment.for_video?
          %div.comment_video
            %a{:href => video_url(comment.video), :title => comment.video.name, :alt => comment.video.name}
              %img.video_thumb{:src => comment.video.thumbnail, :title => comment.video.name, :alt => comment.video.name}
        - if comment.for_photo?
          %div.comment_photo
            %a{:href => photo_url(comment.photo), :title => (comment.photo.caption ? comment.photo.caption : comment.photo.filename), :alt => (comment.photo.caption ? comment.photo.caption : comment.photo.filename)}
              %img.photo_thumb{:src => comment.photo.public_filename(:thumb), :title => (comment.photo.caption ? comment.photo.caption : comment.photo.filename), :alt => (comment.photo.caption ? comment.photo.caption : comment.photo.filename)}
        - if comment.for_song?
          %div.comment_song
            About the song "
            %a{:href => song_url(comment.song), :title => comment.song.name, :alt => comment.song.name}= comment.song.name
            "
            %object{:height => "17", :width => "17", :data => "/assets/button/musicplayer.swf?&b_colors=80FF00,257b00,80FF00,FF0000&playlist_url=" + song_url(comment.song) + ".xml", :type => "application/x-shockwave-flash"}
              %param{:value => "/assets/button/musicplayer.swf?playlist_url=" + song_url(comment.song) + ".xml", :name => "movie"}
              %img{:height => "17", :width => "17", :alt => "play", :src => "/assets/noflash.gif"}
        - if comment.for_show?
          %div.comment_show
            About the show "
            %a{:href => show_url(comment.show), :title => comment.show.location, :alt => comment.show.location}= comment.show.location
            "
        %a.comment_user{:href => user_url(comment.user)}= comment.user.login
        said:
        %p.comment_date= comment.created_at.strftime("%B %o at %I:%M %p")
        %p.comment_text= "\"#{comment.text}\""